import request from './request.js';
let service = request.service;
let download = request.download;
export default {
    addUpdateCgtask(type,data){
            /**新增或修改采购任务*/
        return service({
            url: `/adscm/operation/cg/cgTask/${type}`,
            method: 'post',
            data
        })
    },
    searchMachine(data){
        return service({
            url: `/adscm/kz/kzMachine/select`,
            method: 'post',
            data
         })
    },
    searchGantt(data){
        return service({
            url: `/adscm/operation/mask/maskWorkRecord/gxReportGantt`,
            method: 'get',
            params: data
         })
    },
    queryBarData(data){
        return service({
            url: `/adscm/operation/mask/maskWorkRecord/gxReportBarCharts`,
            method: 'get',
            params: data
         })
    },
    queryWeekBarData(data){
        return service({
            url: `/adscm/operation/mask/maskWorkRecord/gxReportBarChartsByWeek`,
            method: 'get',
            params: data
         })
    },
    queryDayBarData(data){
        return service({
            url: `/adscm/operation/mask/maskWorkRecord/gxReportBarChartsByClasses`,
            method: 'get',
            params: data
         })
    },
    getPaymentSettlement(id){
        return service({
            url: `/adscm/operation/cg/cgTask/selectCgPayOrderBy/${id}`,
            method: 'post'
        })
    },
}
